package com.ruanda.model; /**
 * 购物车商品条目对象
 */

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;

@Schema(description = "购物车商品条目对象")
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class CartItem {
    @Schema(description = "商品id")
    private Long prodId;
    @Schema(description = "商品skuId")
    private Long skuId;
    @Schema(description = "商品图片")
    private String pic;
    @Schema(description = "商品名称")
    private String prodName;
    @Schema(description = "商品sku名称")
    private String skuName;
    @Schema(description = "商品单价")
    private BigDecimal price;
    @Schema(description = "购物车id")
    private Long basketId;
    @Schema(description = "商品购买数量")
    private Integer prodCount;
}